package com.example.demo.manager;

import com.example.demo.pojo.UserTenantDo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author CHAS
 * 2024/7/27 15:41
 **/
@Component
@Slf4j
public class RedisMongoManager {

    @Resource
    MongoTemplate mongoTemplate;
    public UserTenantDo insert(UserTenantDo userTenantDo) {
        UserTenantDo save = mongoTemplate.save(userTenantDo);
        return save;
    }
}
